package com.boyunv.mediator.example01.example02;
/*
 *@description
 *  租房者
 *@author boyunv
 *@create 2023/9/10 10:06
 *@version 1.0
 */

public class Tenant extends Person{
    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    
    }
    
    public  void  contact(String  message){
        mediator.constact(message,this);
    }
    
    public void  getMsg(String msg){
        System.out.println("租房者"+name+",获取到的信息:"+msg);
    }
        
}
